package cat_catch_mice;

import java.util.Scanner;

public class cat_catch_miceTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Car x=new Car();
        Mice xx=new Mice();
        x.name="大黄猫";
        x.weight=5;
        xx.name="米老鼠";
        System.out.print("请输入猫的体力:");
        int a=in.nextInt();
        System.out.print("请输入老鼠的体力");
        int b=in.nextInt();
        xx.setStrength(b);
        x.setStrength(a);
        x.catch_mice(xx);
    }
}
